package com.echat.elocation.event;

/**
 *
 * @author lihao
 *
 * @date 2018/7/16 17:04
 */
public class ConnectionEvent {

    // 连接成功
    public static final int CONNECT_SUCCESS = 0;
    // 连接失败
    public static final int CONNECT_FAIL = 1;
    // 连接断开
    public static final int CONNECT_CLOSED = 2;

    private int state;

    public ConnectionEvent(int state) {
        this.state = state;
    }

    public int getState() {
        return state;
    }
}
